﻿

namespace Library.OrmEnterpriseEntity {
	public class QueryWrapBuilder : ExpressionBuilder {
		public readonly ExpressionBuilder Wrap;
		public readonly ExpressionOperator Operator;
		public QueryWrapBuilder(ExpressionBuilder wrap, ExpressionOperator expressionOperator) {
			Wrap = wrap;
			Operator = expressionOperator;
		}
		public override ExpressionType ExpType {
			get { return ExpressionType.Wrap; }
		}
		public override QueryStatement Statement {
			get {
				return base.Statement;
			}
			set {
				base.Statement = value;
				Wrap.Statement = value;
			}
		}
	}
}
